<?php

class Admin_Form_Page extends Frames_Form
{
	
    public function init( )
    {
    	$id = new Zend_Form_Element_Hidden('id');
    	$this->addElement($id);
    	
    	$url = new Zend_Form_Element_Text('url');
		$url->setRequired(true)
		         ->setLabel( 'url : ' )
		         ->addFilter('StringToLower')
		          ->addFilter('StringTrim')
		           ->addFilter('StripTags')
		         ->setErrorMessages(array( 'השדה הינו שדה חובה' ));
		$this->addElement($url);
		
		$controller = new Zend_Form_Element_Text('controller');
		$controller->setRequired(true)
		         ->setLabel( 'controller : ' )
		         ->addFilter('StringToLower')
		          ->addFilter('StringTrim')
		           ->addFilter('StripTags')
		         ->setErrorMessages(array( 'השדה הינו שדה חובה' ));
		$this->addElement($controller);
		
		$action = new Zend_Form_Element_Text('action ');
		$action ->setRequired(true)
		         ->setLabel( 'action  : ' )
		         ->addFilter('StringToLower')
		          ->addFilter('StringTrim')
		           ->addFilter('StripTags')
		         ->setErrorMessages(array( 'השדה הינו שדה חובה' ));
		$this->addElement($action );
		
    	$title = new Zend_Form_Element_Text('title ');
		$title ->setRequired(true)
		         ->setLabel( 'title  : ' )
		         ->addFilter('StringToLower')
		          ->addFilter('StringTrim')
		           ->addFilter('StripTags')
		         ->setErrorMessages(array( 'השדה הינו שדה חובה' ));
		$this->addElement($title );
		
		parent::init( $this->legendLabel );
    }
}
